package File;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
       // File file = new File("demo");
        File file = new File("a/b/c/d");
        if (file.exists()){
            System.out.println("该目录已存在");
        }else {
            //file.mkdir();
            file.mkdirs();
            System.out.println("目录已创建");
        }
    }
}
